/* 
 * File:    CannotReadException.h
 * Authors: Diane, Dan, and Tim
 * Class:   Operating Systems, Lab 2, UMD
 * Created: September 2012
 */
#ifndef _CANNOTWRITEEXCEPTION_H
#define	_CANNOTWRITEEXCEPTION_H

#include "ctype.h"
#include <iostream>
#include <stdexcept>

using namespace std;


/** @class CannotWriteException CannotWriteException.h "CannotWriteException.h"
 *
 *  Exception class thrown when an invalid operator is read in.
 */
class CannotWriteException : public invalid_argument {
    public:
        // constructor
        explicit CannotWriteException(const string& message = "")
            : invalid_argument(message.c_str()) {
            }

        // destructor
        virtual ~CannotWriteException() throw() {
            }
    };

#endif	/* _CANNOTWRITEEXCEPTION_H */

